home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Newton Sample Code 1.2 / User Interface Guidelines / Splash-1 / README.Splash < prev    next >
Encoding:
Text File  |  1994-07-05  |  1.2 KB  |  27 lines  |  [TEXT/R*ch]

  1. Splash
  2. by Bob Ebert
  3. Copyright © 1994 by Apple Computer, Inc.  All rights reserved.
  4.  
  5. This sample illustrates how to make a splash screen that opens up while your
  6. application is launching.  Don't do this unless you app takes more than a
  7. few seconds to open.
  8.  
  9. The technique is straightforward.  Use BuildContext() to create a view on
  10. the fly, and open it.  We use a few tricks to nicely integrate the template
  11. into the application.
  12.  
  13. • Build the splash screen in a separate NTK layout.
  14. • Make the top-most view in the splash screen not visible.
  15. • Link the screen into the application's base view, and declare the link.
  16. • BuildContext(theDeclaredLink._proto) creates the splash screen view.
  17. • Send the newly created view the open message.
  18. • Call RefreshViews() to update the screen.
  19.  
  20. Don't forget to:
  21. • Close the splash screen!  Probably at the end of the viewSetupDoneScript.
  22. • Nil out the temporary variable for the splash screen view.  (Save memory)
  23. • Make sure the splash screen gets closed if you app quits unexpectedly.
  24. • Keep your splash screens simple and tasteful.  Use "about" screens for
  25.   credits and such.  Avoid fancy animations, they just slow down opening
  26.   the app.
  27.